﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Forum/Views/Shared/ForumModerator.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SacNetUG.Areas.Forum.Models.Post>>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h4>Flagged Items approved by the Moderator</h4>
    <hr />
    <table>
        <tr>
            <th class="tdedit">&nbsp;</th>
            <th class="tdid">
                ID
            </th>
            <th class="tdhandle">
                Handle
            </th>
            <th class="thdate">
                Date
            </th>
            <th class="thflagged">
                Flagged
            </th>
            <th class="thflaggedthenapproved">
                Approved
            </th>
            <th class="thsubject">
                Subject
            </th>
            <th class="thposts">
                Posts
            </th>
            <th class="ththepost">
                The Post
            </th>
            <th class="thinit">
                Init?
            </th>
            <th class="thpostedto">
                Post To
            </th>
        </tr>
        <tr>
            <td colspan="11" valign="top"><hr /></td>
        </tr>

    <% foreach (var item in Model) { %>
        <tr>
            <td class="tdedit">
                <%: Html.ActionLink("Delete", "DeleteFlagged", new { id=item.PostID })%>
            </td>
            <td class="tdid">
                <%: item.PostID %>
            </td>
            <td class="tdhandle">
                <%: item.PostorHandle %>
            </td>
            <td class="tddate">
                <%: item.DatePosted %>
            </td>
            <td class="tdflagged">
                <%: item.Flagged %>
            </td>
            <td class="tdflaggedthenapproved">
                <%: item.FlaggedThenApproved %>
            </td>
            <td class="tdsubject">
                <%: item.InitialPostSubject %>
            </td>
            <td class="tdposts">
                <%: item.NumberOfPosts %>
            </td>
            <td class="tdthepost">
                <%: item.ThePost %>
            </td>
            <td class="tdinit">
                <%: item.IsTheInitialPost %>
            </td>
            <td class="tdpostedto">
                <%: item.PostedTo %>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>

